
export function getReceiveAddressList (data) {
  return {
    url: 'receive_address/list',
    method: 'get'
  }
}

export function DeleteReceiveAddressById (id) {
  return {
    url: 'receive_address/delete/' + id,
    method: 'post'
  }
}

export function CreateReceiveAddress () {
  return {
    url: 'receive_address/save',
    method: 'post'
  }
}

export function UpdateReceiveAddress () {
  return {
    url: 'receive_address/update',
    method: 'post'
  }
}

export function setReceiveAddressDefault (id) {
  return {
    url: 'receive_address/default/' + id,
    method: 'post'
  }
}

// 个人订单
export function getWechatPersonPage (data) {
  return {
    url: 'wechat/person_page',
    method: 'get',
    data
  }
}

// 平台订单
export function getWechatPlatformPage (data) {
  return {
    url: 'wechat/platform_page',
    method: 'get',
    data
  }
}

// 订单删除
export function deleteWechatById (id) {
  return {
    url: 'wechat/delete/' + id,
    method: 'post'
  }
}

// 订单详情
export function getMyOrderDetail (id) {
  return {
    url: 'wechat/' + id,
    method: 'get'
  }
}
